PaymentPlugins\PPCP\WooCommerceSubscriptions\SubscriptionController B

Total Complexity 95
Dependencies 13
Dependents 1
Total lines 374
Lines of code 263
Logical lines of code 149
Comment lines 69
Methods 19
Properties 4

Methods 19

Method Rating Maintainability Complexity Lines of code
get_paypal_flow()
A
51 15 25
add_payment_method_data()
A
52 13 22
update_new_payment_method_title()
S
53 7 22
show_card_save_checkbox()
S
59 7 15
process_payment()
S
59 7 14
update_failing_payment_method()
S
51 6 28
get_checkout_payment_method_save_required()
S
62 6 12
get_payment_method_save_required()
S
62 6 12
handle_checkout_validation()
S
55 5 18
save_order_metadata()
S
59 5 15
get_formatted_cart_item()
S
66 4 8
get_extended_schema_data()
S
66 4 8
add_subscription_payment_meta()
S
55 1 23
initialize()
S
55 1 18
is_manual_renewal_required()
S
79 2 3
process_change_payment_method_request()
S
69 2 7
is_change_payment_method_request()
S
76 2 4
scheduled_subscription_payment()
S
80 1 3
__construct()
S
71 1 6